package cn.edu.scau.cmi.luodongmei.abstractFactory.factory;

import cn.edu.scau.cmi.luodongmei.abstractFactory.domainAbstractClass.TypeOfInsurance;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String company) {
		switch(company) {
		case "PICC": 
			return new PICCFactory();
		case "PingAn":
			return new PingAnFactory();
		default:
			return null;
		}
	}
	public abstract TypeOfInsurance createInjuryInsurance();
	public abstract TypeOfInsurance createDamageInsurance();
	public abstract TypeOfInsurance createDeathInsurance();
	public abstract TypeOfInsurance createMultiAccidentInsurance();
}
